package com.example.feign.feign.fallback;

import com.example.feign.entity.Skill;
import com.example.feign.feign.SkillFeign;
import com.example.feign.util.Response;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class SkillFallback implements SkillFeign {
    @Override
    public Response getSkill(Integer page, Integer size, Map map) {
        Response response = new Response();
        response.setMsg("服用调用失败");
        response.setStatus(500);
        response.setData(null);
        return response;
    }

    @Override
    public Response getAllSkill() {
        Response response = new Response();
        response.setMsg("服用调用失败");
        response.setStatus(500);
        response.setData(null);
        return response;
    }

    @Override
    public Response addSkill(Skill skill) {
        Response response = new Response();
        response.setMsg("服用调用失败");
        response.setStatus(500);
        response.setData(null);
        return response;
    }

    @Override
    public Response updateSkill(Skill skill) {
        Response response = new Response();
        response.setMsg("服用调用失败");
        response.setStatus(500);
        response.setData(null);
        return response;
    }

    @Override
    public Response delSkill(String skillId) {
        Response response = new Response();
        response.setMsg("服用调用失败");
        response.setStatus(500);
        response.setData(null);
        return response;
    }
}
